xen: arm: flush dcache while preparing the device tree for Dom0
authorOleksandr Dmytryshyn <oleksandr.dmytryshyn@globallogic.com>
Wed, 27 Nov 2013 17:09:52 +0000 (19:09 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 29 Nov 2013 10:29:04 +0000 (10:29 +0000)
commitc8f14de363587a0143e5d4181cca44979f4baa98
treef17c4541c1e6085cd778333a7df36cc25bddd302
parent31389a2b12131cef5c9572ebd43b0d21aaf40f15
xen: arm: flush dcache while preparing the device tree for Dom0

Without flushing dcache the hypervisor couldn't copy the device tree
correctly when booting the kernel dom0 Image (memory with device tree
is corrupted). As the result - when we try to load the kernel dom0
Image - dom0 hungs frequently. This issue is not reproduced with the
kernel dom0 zImage because the zImage decompressor code flushes all
dcache before starting the decompressed kernel Image. When the
hypervisor loads the kernel image or initrd, this memory region
isn't corrupted because the hypervisor code flushes the dcache.

Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@globallogic.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall<julien.grall@linaro.org>
xen/arch/arm/domain_build.c